import React from 'react';
import { Route, Switch } from 'react-router-dom';
import routerList from './routerList';

export default () => (
  <Switch>
    {routerList.map((router) => (
      <Route {...router} />
    ))}
  </Switch>
);
